#include<stdio.h>

int main()
{
	double c;
	int min,max,sign,flag;
	scanf("%d %d",&min,&max);
	if(min>max) printf("Invalid.\n");
	else printf("fahr celsius\n");
	for(sign=min;sign<=max;sign+=2)
	{
		c=5*(sign-32)/9.0;
		printf("%d%6.1lf\n",sign,c);
	}
	return 0;
}
